﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LogProviderTestWebRole
{
    using AzureLogProviders.Common;

    public partial class About : System.Web.UI.Page
    {
        private AzureLogProvider logProvider = LoggerFactory.GetLogProvider("AzureDiagnosticLogProvider");
        protected void Page_Load(object sender, EventArgs e)
        {
            logProvider.StartLogicalGrouping("page_load");
            ITracer tracer = logProvider.GetTracer();
            tracer.StartMethodTracing();
            logProvider.Write("Hello", LogSeverityLevel.Error);
            logProvider.Write("Hello1", LogSeverityLevel.Error);
            tracer.EndTracing();

            logProvider.SetSeverityLevel(LogSeverityLevel.Error);

        }
    }
}
